package com.suray.basic.wcs.plc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.suray.commin.core.utils.BaseModel;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author cooper
 * @since 2019-06-26
 */
@Accessors(chain = true)
@TableName("wcs_plcdevice")
public class PlcDeviceDB extends BaseModel implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "device_id", type = IdType.AUTO)
    private Integer deviceId;
    /**
     * 相对位置（只有提升机才有值 0.中 1. 左 2. 右）
     */
    private Integer location;

    private Integer plcId;

    private Integer deviceNo;

    private String deviceLocation;

    private String deviceName;

    private Integer deviceType;

    private String plcLockLocation;

    private Integer startAddress;

    /**
     * 提升机最大层数
     */
    private Integer gridzMax;

    /**
     * 提升机一层相对于货架的层数
     */
    private Integer gridzRelative;

    //PLC设备状态
    private String status;
    /**
     * 设备任务编号
     */
    private Integer taskNo;

    public Integer getTaskNo() {
        return taskNo;
    }

    public void setTaskNo(Integer taskNo) {
        this.taskNo = taskNo;
    }

    public Integer getGridzMax() {
        return gridzMax;
    }

    public void setGridzMax(Integer gridzMax) {
        this.gridzMax = gridzMax;
    }

    public Integer getGridzRelative() {
        return gridzRelative;
    }

    public void setGridzRelative(Integer gridzRelative) {
        this.gridzRelative = gridzRelative;
    }

    public Integer getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }

    public Integer getLocation() {
        return location;
    }

    public void setLocation(Integer location) {
        this.location = location;
    }

    public Integer getPlcId() {
        return plcId;
    }

    public void setPlcId(Integer plcId) {
        this.plcId = plcId;
    }

    public String getDeviceLocation() {
        return deviceLocation;
    }

    public void setDeviceLocation(String deviceLocation) {
        this.deviceLocation = deviceLocation;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public Integer getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(Integer deviceType) {
        this.deviceType = deviceType;
    }

    public String getPlcLockLocation() {
        return plcLockLocation;
    }

    public void setPlcLockLocation(String plcLockLocation) {
        this.plcLockLocation = plcLockLocation;
    }

    public Integer getStartAddress() {
        return startAddress;
    }

    public void setStartAddress(Integer startAddress) {
        this.startAddress = startAddress;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getDeviceNo() {
        return deviceNo;
    }

    public void setDeviceNo(Integer deviceNo) {
        this.deviceNo = deviceNo;
    }

}
